package com.slz3.business.module.goodsManagement.gooOutWarehouse.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.goodsManagement.gooOutWarehouse.domain.GooOutWarehouse;
import com.slz3.business.module.goodsManagement.gooOutWarehouse.domain.GooOutWarehouseCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class GooOutWarehouseResAtomic extends GooOutWarehouseResExecutor {

    public Mono<ServerResponse> add_$GooOutWarehouseUpdateLock(ServerRequest req, GooOutWarehouse gooOutWarehouse) {
        return GooOutWarehouseResSafeValid.add(req, gooOutWarehouse) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, gooOutWarehouse);
    }

    public Mono<ServerResponse> delete_$GooOutWarehouseUpdateLock(ServerRequest req, GooOutWarehouseCondition gooOutWarehouseCondition) {
        return GooOutWarehouseResSafeValid.delete(req, gooOutWarehouseCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$GooOutWarehouseUpdateLock(ServerRequest req, GooOutWarehouse gooOutWarehouse) {
        return GooOutWarehouseResSafeValid.modify(req, gooOutWarehouse) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, gooOutWarehouse);
    }

    public Mono<ServerResponse> info_$GooOutWarehouseUpdateLock(ServerRequest req) {
        return GooOutWarehouseResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$GooOutWarehouseUpdateLock(ServerRequest req, GooOutWarehouseCondition gooOutWarehouseCondition) {
        return GooOutWarehouseResSafeValid.auditSubmit(req, gooOutWarehouseCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$GooOutWarehouseUpdateLock(ServerRequest req, GooOutWarehouseCondition gooOutWarehouseCondition) {
        return GooOutWarehouseResSafeValid.audit(req, gooOutWarehouseCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$GooOutWarehouseUpdateLock(ServerRequest req, GooOutWarehouseCondition gooOutWarehouseCondition) {
        return GooOutWarehouseResSafeValid.auditReject(req, gooOutWarehouseCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$GooOutWarehouseUpdateLock(ServerRequest req, GooOutWarehouseCondition gooOutWarehouseCondition) {
        return GooOutWarehouseResSafeValid.usingEnable(req, gooOutWarehouseCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$GooOutWarehouseUpdateLock(ServerRequest req, GooOutWarehouseCondition gooOutWarehouseCondition) {
        return GooOutWarehouseResSafeValid.usingDisable(req, gooOutWarehouseCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
